<template>
  <a-col :span="attrs.span">
    <a-form-item v-bind="attrs" class="w-full">
      <slot></slot>
      <template #label>
        <slot name="label">
          <span
            :style="{
              width: attrs.width || 'unset'
            }"
            >{{ attrs.label }}</span
          >
        </slot>
      </template>
    </a-form-item>
  </a-col>
</template>
<script setup>
import { useAttrs } from 'vue'
const attrs = useAttrs()
</script>
